Optimal. Leaf size=51 \[ \frac {x^4}{8}+\frac {\cos ^2\left (a+b x^2\right )}{8 b^2}+\frac {x^2 \cos \left (a+b x^2\right ) \sin \left (a+b x^2\right )}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3461, 3391, 30}
\begin {gather*} \frac {\cos ^2\left (a+b x^2\right )}{8 b^2}+\frac {x^2 \sin \left (a+b x^2\right ) \cos \left (a+b x^2\right )}{4 b}+\frac {x^4}{8} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 3391
Rule 3461
Rubi steps
\begin {align*} \int x^3 \cos ^2\left (a+b x^2\right ) \, dx &=\frac {1}{2} \text {Subst}\left (\int x \cos ^2(a+b x) \, dx,x,x^2\right )\\ &=\frac {\cos ^2\left (a+b x^2\right )}{8 b^2}+\frac {x^2 \cos \left (a+b x^2\right ) \sin \left (a+b x^2\right )}{4 b}+\frac {1}{4} \text {Subst}\left (\int x \, dx,x,x^2\right )\\ &=\frac {x^4}{8}+\frac {\cos ^2\left (a+b x^2\right )}{8 b^2}+\frac {x^2 \cos \left (a+b x^2\right ) \sin \left (a+b x^2\right )}{4 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 40, normalized size = 0.78 \begin {gather*} \frac {\cos \left (2 \left (a+b x^2\right )\right )+2 b x^2 \left (b x^2+\sin \left (2 \left (a+b x^2\right )\right )\right )}{16 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 42, normalized size = 0.82
method | result | size |
default | \(\frac {x^{4}}{8}+\frac {x^{2} \sin \left (2 b \,x^{2}+2 a \right )}{8 b}+\frac {\cos \left (2 b \,x^{2}+2 a \right )}{16 b^{2}}\) | \(42\) |
risch | \(\frac {x^{4}}{8}+\frac {x^{2} \sin \left (2 b \,x^{2}+2 a \right )}{8 b}+\frac {\cos \left (2 b \,x^{2}+2 a \right )}{16 b^{2}}\) | \(42\) |
norman | \(\frac {\frac {x^{4}}{8}+\frac {x^{4} \left (\tan ^{2}\left (\frac {a}{2}+\frac {b \,x^{2}}{2}\right )\right )}{4}+\frac {x^{4} \left (\tan ^{4}\left (\frac {a}{2}+\frac {b \,x^{2}}{2}\right )\right )}{8}+\frac {x^{2} \tan \left (\frac {a}{2}+\frac {b \,x^{2}}{2}\right )}{2 b}-\frac {x^{2} \left (\tan ^{3}\left (\frac {a}{2}+\frac {b \,x^{2}}{2}\right )\right )}{2 b}-\frac {\tan ^{2}\left (\frac {a}{2}+\frac {b \,x^{2}}{2}\right )}{2 b^{2}}}{\left (1+\tan ^{2}\left (\frac {a}{2}+\frac {b \,x^{2}}{2}\right )\right )^{2}}\) | \(119\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 42, normalized size = 0.82 \begin {gather*} \frac {2 \, b^{2} x^{4} + 2 \, b x^{2} \sin \left (2 \, b x^{2} + 2 \, a\right ) + \cos \left (2 \, b x^{2} + 2 \, a\right )}{16 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 45, normalized size = 0.88 \begin {gather*} \frac {b^{2} x^{4} + 2 \, b x^{2} \cos \left (b x^{2} + a\right ) \sin \left (b x^{2} + a\right ) + \cos \left (b x^{2} + a\right )^{2}}{8 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.26, size = 78, normalized size = 1.53 \begin {gather*} \begin {cases} \frac {x^{4} \sin ^{2}{\left (a + b x^{2} \right )}}{8} + \frac {x^{4} \cos ^{2}{\left (a + b x^{2} \right )}}{8} + \frac {x^{2} \sin {\left (a + b x^{2} \right )} \cos {\left (a + b x^{2} \right )}}{4 b} + \frac {\cos ^{2}{\left (a + b x^{2} \right )}}{8 b^{2}} & \text {for}\: b \neq 0 \\\frac {x^{4} \cos ^{2}{\left (a \right )}}{4} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 76, normalized size = 1.49 \begin {gather*} -\frac {{\left (2 \, b x^{2} + 2 \, a + \sin \left (2 \, b x^{2} + 2 \, a\right )\right )} a}{8 \, b^{2}} + \frac {2 \, {\left (b x^{2} + a\right )}^{2} + 2 \, {\left (b x^{2} + a\right )} \sin \left (2 \, b x^{2} + 2 \, a\right ) + \cos \left (2 \, b x^{2} + 2 \, a\right )}{16 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.15, size = 41, normalized size = 0.80 \begin {gather*} \frac {\cos \left (2\,b\,x^2+2\,a\right )}{16\,b^2}+\frac {x^4}{8}+\frac {x^2\,\sin \left (2\,b\,x^2+2\,a\right )}{8\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________